
import { request } from '@/utils/request';

// 查询公告列表
export const getPage = (params: any) => {
  return request.get({ url: '/staff/web/userCenter/content/article/page.json', params })
}

// 查询公告详情
export const getById = (id: string) => {
  return request.get({ url: '/staff/web/userCenter/content/article/getById.json?id=' + id })
}

// 修改公告
export const update = (data: any, ) => {
  return request.put({ url: '/staff/web/userCenter/content/article/update.json', data })
}

// 删除公告
export const del = (id: string) => {
  return request.delete({ url: '/staff/web/userCenter/content/article/del.json?id=' + id, data: [id, ],  })
}
